package hn.sigit.model.hnd.ladmshadow;

import java.io.Serializable;
import javax.persistence.*;
@Entity(name="hn.sigit.model.hnd.ladmshadow.ExtPhysicalNetwork")
@org.hibernate.annotations.Proxy(lazy=false)
@Table(name="ExtPhysicalNetwork", schema="ladmshadow")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class ExtPhysicalNetwork implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public ExtPhysicalNetwork() {
	}
	
	private long extPartyManagerID;
	private boolean directed;
	
	

	@Id
	@Column(name="ID", nullable=false)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="shw_extphysicalnetwork_id_gen")
	@SequenceGenerator(name="shw_extphysicalnetwork_id_gen", sequenceName="shw_extphysicalnetwork_id_seq", allocationSize=1)
	public long getExtPartyManagerID() {
		return extPartyManagerID;
	}
	protected void setExtPartyManagerID(long value) {
		this.extPartyManagerID = value;
	}
	@Transient
	public long getORMID() {
		return getExtPartyManagerID();
	}
	
	
	@Column(name="Directed", nullable=false)	
	public boolean getDirected() {
		return directed;
	}
	public void setDirected(boolean value) {
		this.directed = value;
	}
	
	public String toString() {
		return String.valueOf(getExtPartyManagerID());
	}
}
